package com.alibaba.citrus.cr.platform.enhance.repository.model.diff.common;

import lombok.Data;

/**
 * @author: qiaojiange
 * @create: 2022/01/19
 * @Description 字段对比失败信息 DTO
 */
@Data
public class FieldCheckFailDTO {
    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 错误信息
     */
    private String errorMsg;

    public static FieldCheckFailDTO of(String fieldName,String errorMsg){
        FieldCheckFailDTO dto = new FieldCheckFailDTO();
        dto.setFieldName(fieldName);
        dto.setErrorMsg(errorMsg);
        return dto;
    }

    private FieldCheckFailDTO() {
    }
}
